home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2436 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.uit.no!news
  2. From: nilss@stud.cs.uit.no (Nils Peter Sudmann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Removing a patch -A POSSIBLE SOULTION
  5. Date: 30 Jan 96 20:12:04 +0100
  6. Organization: University of Tromsoe, Norway
  7. Message-ID: <1177.6603T1212T240@stud.cs.uit.no>
  8. References: <1996Jan29.141204.23597@ludens>
  9. NNTP-Posting-Host: uit-or4.uit.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. On 29-Jan-96 13:12:04, genie (genie@ludens.elte.hu) wrote:
  13. >  Hi to All,
  14.  
  15. > I got a fine reaction on my latest posting about the removing a patch
  16. > problem,
  17. >so I decided to make my possibly working version available to the public.
  18. >Just in a nutshell, I will give an EXTREMELY SIMPLIFIED assembly code section
  19. >with some comments in the end. (I guess you don't like reading a lot.) Let's
  20. >see then...
  21.  
  22. >The code for the patch which is SetFunctioned somewhere looks like this:
  23.  
  24. >PatchMan:    addq    #1,UseCount    ;how many tasks using this patch?
  25.             ^^^^^^^^^^^^^^^^^
  26. This does really not help a lot if you want your progam to be 100% safe. 
  27. Still, it does decrease the chance of crashes. The problem is that a process
  28. switch could (at least in teory) occur right after the PC was loaded with the
  29. address of your routine, but before actually executing the first instruction
  30. in it.
  31.  
  32. There are other problems too, but I see they are addressed in another reply...
  33.  
  34. --
  35. Nils Peter Sudmann                  // Using Thor v2.21/#1113, sign v1.5
  36. "Truth, a random variable possibly // EMAIL: nilss@stud.cs.uit.no
  37.  containing complex numbers"      // WWW: http://www.cs.uit.no/~nilss
  38.  
  39.  
  40.